﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Base.Utils;
using Chinook.Core;
using Chinook.Core.DomainModel;
using Chinook.Core.DaoInterface;
using Base.Utils.Logging;

using Chinook.Facade;
using Chinook.Facade.Factory;
using Chinook.Facade.ViewModel;
using Chinook.Facade.Messaging;
using Chinook.Web;
using System.Xml;
using System.Xml.Linq;
using System.Text.RegularExpressions;
using System.IO;
namespace Chinook.Web
{
    public partial class _Default : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //////IProfilerService profilerService = ChinookWebFactory.ProfilerService;
            //////var classes = profilerService.DistinctClasses();
            //////var methods = profilerService.DistinctMethods("Dole.EPM.Facade.DoleEpmAppService");
            //////var logs1 = profilerService.GetAll("Dole.EPM.Facade.DoleEpmAppService", "GetWorkOrderSearch");
            //////var logs2 = profilerService.GetAllByTimeRange(DateTime.Now.AddDays(-1),DateTime.Now, "Dole.EPM.Facade.DoleEpmAppService", "GetWorkOrderSearch");

            
        
            //var Invoicefacade = new InvoiceAppService();           
            //Customer customer = Invoicefacade.GetCustomerByID(5);            
            ////New Invoice object
            //var oinvoice = new Invoice();
            //oinvoice.InvoiceDate = DateTime.Now;
            //oinvoice.BillingAddress = "Address";
            //oinvoice.BillingCity = "BillingCity";
            //oinvoice.BillingState = "BillingState";
            //oinvoice.BillingCountry = "BillingCountry";
            //oinvoice.BillingPostalCode = "PO555";
            //oinvoice.Customer = customer;            
            ////invoiceline object
            //var oInvoiceLine = new InvoiceLine { Quantity = 2, UnitPrice = 4, Invoice = oinvoice };      
            ////add invoiceline object to invoice 
            //oinvoice.Lines.Add(oInvoiceLine);            
            ////Save invoice
            //Invoicefacade.SaveInvoice(oinvoice);
        }
        }
}
